/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jesseenglish.swingftfy.extensions;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.font.TextAttribute;
import java.util.Map;
import javax.swing.Icon;
import javax.swing.tree.DefaultMutableTreeNode;

/**
 *
 * @author jesse
 */
public class FNode extends DefaultMutableTreeNode implements MouseListener {

    protected Icon icon;
    protected Map<TextAttribute, Object> textAttributes;

    public FNode() {
        this(null);
    }

    public FNode(Object userObject) {
        this(userObject, true, null);
    }

    public FNode(Object userObject, boolean allowsChildren, Icon icon) {
        super(userObject, allowsChildren);
        this.icon = icon;
    }

    public void setIcon(Icon icon) {
        this.icon = icon;
    }

    public Icon getIcon() {
        return icon;
    }

    public void setTextAttributes(Map<TextAttribute, Object> textAttributes) {
        this.textAttributes = textAttributes;
    }

    public Map<TextAttribute, Object> getTextAttributes() {
        return textAttributes;
    }

    public void mouseClicked(MouseEvent me) {
    }

    public void mousePressed(MouseEvent me) {
    }

    public void mouseReleased(MouseEvent me) {
    }

    public void mouseEntered(MouseEvent me) {
    }

    public void mouseExited(MouseEvent me) {
    }
}
